package org.grow.bill.service;

import org.grow.basic.dto.BatchIntentionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: nick
 * @Date: 21-8-17
 */
@Service
@FeignClient(value = "commodity",fallback = PurchaseBillFallback.class)
public interface PurchaseBillFeign {
//     PUT http://commodity/commodity/storage/intention HTTP/1.1
//     Put http://localhost:9092/commodity/storage/intention
    @PutMapping("/commodity/storage/intention")
    Integer updateIntentionStock(@RequestBody BatchIntentionDto batchIntentionDto);
}
